<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/8/29 13:41
 * Modified Time: 2019/8/29 13:41
 * Version: 2.0
 */

namespace App\Modules\Inventory\Validators;


class GoodsControllerValidator
{
    public static function validator()
    {
        return[
            'createGoods'=> [
                'is_sell'=>[
                    'title'=>'是否外卖',
                    'rule'=> 'required',
                    'message'=>[
                        'is_sell.required'=>'请选择是否外卖'
                    ]
                ]
            ],
            'getSellGoodsList'=> [
                'store_id'=>[
                    'title'=>'店铺id',
                    'rule'=> 'required',
                    'message'=>[]
                ]
            ],
            'getGoodsListSearch'=> [
                'store_id'=>[
                    'title'=>'店铺id',
                    'rule'=> 'required',
                    'message'=>[]
                ]
            ],
            'editGoods'=> [
                'store_id'=>[
                    'title'=>'店铺id',
                    'rule'=> 'required',
                    'message'=>[]
                ],
                'goods_id'=>[
                    'title'=>'商品id',
                    'rule'=> 'required',
                    'message'=>[]
                ],
            ],
            'delGoods'=> [
                'store_id'=>[
                    'title'=>'店铺id',
                    'rule'=> 'required',
                    'message'=>[]
                ],
                'goods_id'=>[
                    'title'=>'商品id',
                    'rule'=> 'required',
                    'message'=>[]
                ],
            ],
            'getGoods'=> [
                'goods_id'=>[
                    'title'=>'商品id',
                    'rule'=> 'required',
                    'message'=>[]
                ],
            ],
        ];
    }
}